﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TVersityDotNet.Status
{
    public class StatusStream
    {
        public Uri Url {get;set;}
        public string Title {get;set;}
        public string PlayerId {get;set;}
        public string Icon {get;set;}
        public string Name {get;set;}
        public string LongName {get;set;}
        public string SourceMimeType {get;set;}
        public string SourceFormat {get;set;}
        public string ProfileId {get;set;}
        public int Size {get;set;}
        public int Progress {get;set;}
        public int ProgressPercent 
        {
            get 
            { 
                if (this.Size != 0)                    
                    return (int)(((double)this.Progress / (double)this.Size) * 100); 
                else 
                    return 0;
            }
        }

        public StatusStream() { }
    }
}
